<div id="section-select">



    <eq name="nobody" value="no">

        <div class="title">
        <a href="__APP__/Section/add" class="add">添加单元</a> <a href="__APP__/MenuItem/component/mid/<{$Think.get.mid}>" class="add">返回</a>
        </div>

        <div class="content">
            <div id="nodata">暂无单元</div>
        </div>
        <div class="footer">
            暂无单元
        </div>
        <else/>

        <div class="title">
                   <form action="__APP__/MenuItem/add" method="post" class="getname">
                <div class="name">选择单元：<input type="text" name="getname"/> <input type="submit" value="下一步" /></div><a class="back" href="javascript:;">返回</a>
                <input type="hidden" name="mid" value="<{$Think.session.mid}>" />
                <input type="hidden" name="cid" value="<{$Think.session.cid}>" />
                <input type="hidden" name="sid" value="" />
            </form>
        </div>

        <div class="content">

            <div class="search">
                <form action="__APP__/Section/select" method="post" class="select">
                   <input type="hidden" name="mid" value="<{$Think.session.mid}>" />
                   <input type="hidden" name="cid" value="<{$Think.session.cid}>" />
                    关键字 <input type="text" name="key" /> 按
                    <select name="search">
                        <option value="1">ID</option>
                        <option value="2">单元名</option>
                    </select>
                    <input type="submit" value="搜索" />
                </form>
            </div>

                <table>
                    <thead>
                    <tr>
                        <th>ID</th><th>单元名</th><th>描述</th><th>分类数</th><th>文章数</th><th>选择</th>
                    </tr>
                    </thead>
                    <tbody>
                        <volist name="list" id="vo">
                            <tr>
                                <td><{$vo['id']}></td>
                                <td class="name"><{$vo['name']}></td>
                                <td><{$vo['description']}></td>
                                <td><{$vo['category']|count}></td>
                                <td><{$vo['article']|count}></td>
                                <td><input type="radio" name="id" value="<{$vo['id']}>" /></td>
                            </tr>
                        </volist>
                    </tbody>
                </table>

        </div>
        <div class="footer">
            <{$show|default="暂无数据"}>
        </div>
    </eq>

</div>
<script src="../Public/js/section_index.js"></script>